.class final Lnet/tsapps/topdeals/ac;
.super Ljava/lang/Object;

# interfaces
.implements Ljava/lang/Runnable;


# instance fields
.field final synthetic a:Lnet/tsapps/topdeals/DealListActivity;


# direct methods
.method constructor <init>(Lnet/tsapps/topdeals/DealListActivity;)V
    .locals 0

    iput-object p1, p0, Lnet/tsapps/topdeals/ac;->a:Lnet/tsapps/topdeals/DealListActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final run()V
    .locals 5

    :try_start_0
    iget-object v0, p0, Lnet/tsapps/topdeals/ac;->a:Lnet/tsapps/topdeals/DealListActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/DealListActivity;->c(Lnet/tsapps/topdeals/DealListActivity;)Lnet/tsapps/topdeals/objects/InitialResponse;

    move-result-object v0

    iget-object v1, v0, Lnet/tsapps/topdeals/objects/InitialResponse;->a:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_0

    iget-object v0, p0, Lnet/tsapps/topdeals/ac;->a:Lnet/tsapps/topdeals/DealListActivity;

    invoke-static {v0}, Lnet/tsapps/topdeals/DealListActivity;->b(Lnet/tsapps/topdeals/DealListActivity;)Lnet/tsapps/topdeals/h/a;

    move-result-object v2

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnet/tsapps/topdeals/objects/Deal;

    iget-wide v3, v0, Lnet/tsapps/topdeals/objects/Deal;->a:J

    invoke-virtual {v2, v3, v4}, Lnet/tsapps/topdeals/h/a;->e(J)Ljava/util/List;

    move-result-object v0

    iget-object v2, p0, Lnet/tsapps/topdeals/ac;->a:Lnet/tsapps/topdeals/DealListActivity;

    new-instance v3, Lnet/tsapps/topdeals/o;

    invoke-direct {v3, p0, v1, v0}, Lnet/tsapps/topdeals/o;-><init>(Lnet/tsapps/topdeals/ac;Ljava/util/ArrayList;Ljava/util/List;)V

    invoke-virtual {v2, v3}, Lnet/tsapps/topdeals/DealListActivity;->runOnUiThread(Ljava/lang/Runnable;)V
    :try_end_0
    .catch Lnet/tsapps/topdeals/g/a; {:try_start_0 .. :try_end_0} :catch_0

    :cond_0
    :goto_0
    return-void

    :catch_0
    move-exception v0

    iget-object v1, p0, Lnet/tsapps/topdeals/ac;->a:Lnet/tsapps/topdeals/DealListActivity;

    invoke-static {v1, v0}, Lnet/tsapps/topdeals/DealListActivity;->a(Lnet/tsapps/topdeals/DealListActivity;Lnet/tsapps/topdeals/g/a;)V

    goto :goto_0
.end method
